package com.liu.threadPool.scheduled;

/**
 * @author LIU
 * @version 1.0
 * @description TODO
 * @date 2023/8/4 16:55
 */
public class MyTask implements Runnable{
    private int id;

    public MyTask(int id) {
        this.id = id;
    }

    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        System.out.println(name+ " 任务执行了:" + id);

    }
}
